package homework0309;

public class ThrowDemo1 {
    public static void main(String[] args) {
        Student1 ldh=new Student1();

        try {
            ldh.setName("刘德华");
            System.out.println(ldh.getName());
        }catch (Exception e){
            System.out.println("名字错误");
        }








    }

}
